package com.ruoyi.erp.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.erp.mapper.GlAccvouchMapper;
import com.ruoyi.erp.domain.GlAccvouch;
import com.ruoyi.erp.service.IGlAccvouchService;

/**
 * 凭证生成Service业务层处理
 * 
 * @author ztj
 * @date 2023-04-28
 */
@Service
public class GlAccvouchServiceImpl implements IGlAccvouchService 
{
    @Autowired
    private GlAccvouchMapper glAccvouchMapper;

    /**
     * 查询凭证生成
     * 
     * @param iYear 凭证生成主键
     * @return 凭证生成
     */
    @Override
    public GlAccvouch selectGlAccvouchByIYear(String iYear)
    {
        return glAccvouchMapper.selectGlAccvouchByIYear(iYear);
    }

    @Override
    public GlAccvouch selectGlAccvouchMaxId(GlAccvouch glAccvouch)
    {
        return glAccvouchMapper.selectGlAccvouchMaxId(glAccvouch);
    }

    /**
     * 查询凭证生成列表
     * 
     * @param glAccvouch 凭证生成
     * @return 凭证生成
     */
    @Override
    public List<GlAccvouch> selectGlAccvouchList(GlAccvouch glAccvouch)
    {
        return glAccvouchMapper.selectGlAccvouchList(glAccvouch);
    }

    /**
     * 新增凭证生成
     * 
     * @param glAccvouch 凭证生成
     * @return 结果
     */
    @Override
    public int insertGlAccvouch(GlAccvouch glAccvouch)
    {
        return glAccvouchMapper.insertGlAccvouch(glAccvouch);
    }

    /**
     * 修改凭证生成
     * 
     * @param glAccvouch 凭证生成
     * @return 结果
     */
    @Override
    public int updateGlAccvouch(GlAccvouch glAccvouch)
    {
        return glAccvouchMapper.updateGlAccvouch(glAccvouch);
    }

    /**
     * 批量删除凭证生成
     * 
     * @param iYears 需要删除的凭证生成主键
     * @return 结果
     */
    @Override
    public int deleteGlAccvouchByIYears(String[] iYears)
    {
        return glAccvouchMapper.deleteGlAccvouchByIYears(iYears);
    }

    /**
     * 删除凭证生成信息
     * 
     * @param iYear 凭证生成主键
     * @return 结果
     */
    @Override
    public int deleteGlAccvouchByIYear(String iYear)
    {
        return glAccvouchMapper.deleteGlAccvouchByIYear(iYear);
    }
}
